# coding: utf-8
import datetime


class DatetimeDemo:
    def _test_base(self):
        """
        dd = DatetimeDemo()
        dd._test_base()
        """
        day_of_week = datetime.datetime.now().weekday() + 1
        print(day_of_week)

        cur_time = datetime.datetime.now().strftime('%Y-%m-%d').split('-')
        day_of_month = cur_time[2]
        print(day_of_month)

        day_of_year = datetime.datetime.now().strftime('%j')
        # cur_time = datetime.datetime.now().strftime('%Y-%m-%d').split('-')
        # day_of_year = datetime.datetime(int(cur_time[0]), int(cur_time[1]), int(cur_time[2])).strftime('%j')
        print(day_of_year)


if __name__ == '__main__':
    dd = DatetimeDemo()
    dd._test_base()
